.timeline {
  margin: 0;
  padding: 0;
  list-style: none;

  &::before {
    @include notes-media('max', map-get($grid-breakpoints, sm)) {
      background: none;
    }
  }

  .system-note {
    .note-text {
      color: $gl-text-color !important;
    }
  }

  .diff-file {
    border: 1px solid $border-color;
    margin: 0;
  }

  &.text-file .diff-file {
    border-bottom: 0;
  }
}

.timeline-entry {
  color: $gl-text-color;

  &:not(.note-form).internal-note .timeline-content,
  &:not(.note-form).draft-note .timeline-content {
    background-color: $orange-50 !important;
  }

  .timeline-entry-inner {
    position: relative;
  }

  &:target,
  &.target {
    .timeline-content {
      background-color: $line-target-blue;
    }

    + .public-note.discussion-reply-holder {
      padding-top: $gl-padding-12 !important;
    }

    &.system-note .note-body .note-text.system-note-commit-list::after {
      background: linear-gradient(rgba($line-target-blue, 0.1) -100px, $line-target-blue 100%);
    }
  }

  .controls {
    padding-top: 10px;
    float: right;
  }
}

.discussion .timeline-entry {
  margin: 0;
  border-right: 0;
  border-radius: $border-radius-default $border-radius-default 0 0;
}
